package com.maben.queue.runner;

import com.maben.queue.queue.QueueConsumer;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class MyRunner implements CommandLineRunner {

    @Override
    public void run(String... args) throws Exception {
        new Thread(new QueueConsumer(), "queueConsumer").start();
    }
}